package com.joinlabs.mapper;

import java.util.List;

import com.joinlabs.entity.Topic;

public interface TopicMapper {
    int deleteByPrimaryKey(Long topicId);

    int insert(Topic record);

    int insertSelective(Topic record);

    Topic selectByPrimaryKey(Long topicId);

    int updateByPrimaryKeySelective(Topic record);

    int updateByPrimaryKey(Topic record);
    /**
     * 查询最近的热门话题
     * @return
     */
    List<Topic> selectRecentTopic();
    
    //查询所有话题
    List<Topic> selectAllTopic();
    
    List<Topic> selectSomeTopics(String topicName);
    
    List<Topic> selectDescTopics();
}